﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace Nirvana
{
    [CustomEditor(typeof(UIVariableBindColor))]
    public class UIVariableBindColorEditor : UIVariableBindBoolEditor
    {
        private SerializedProperty enabledColor;
        private SerializedProperty disabledColor;
        protected override void OnEnable()
        {
            if (this.target == null) return;
            base.OnEnable();
            this.enabledColor = serializedObject.FindProperty("enabledColor");
            this.disabledColor = serializedObject.FindProperty("disabledColor");
        }

        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            serializedObject.Update();
            EditorGUILayout.Space();
            EditorGUILayout.PropertyField(this.enabledColor, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.disabledColor, new GUILayoutOption[0]);
            serializedObject.ApplyModifiedProperties();
        }

    }
}

